package com.base.util.javautils.observer;

/**
 * Created by gj on 16-1-24.
 */
public class ObserverGeneralMessage extends AbstractObserverMessage<ObserverMessageGeneralType> {

    private Object msg;

    public ObserverGeneralMessage(ObserverMessageGeneralType msgType) {
        super(msgType);
    }

    public Object getMsg() {
        return msg;
    }

    public void setMsg(Object msg) {
        this.msg = msg;
    }

    @Override
    public AbstractObserverMessage copy() {
        ObserverGeneralMessage copy = new ObserverGeneralMessage(getMsgType());
        copy.setMsg(msg);
        return copy;
    }
}
